/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;


namespace JDCloudSDK.Vm.Model
{

    /// <summary>
    ///  镜像导入导出任务详情。
    /// </summary>
    public class TaskInfo
    {

        ///<summary>
        /// 任务ID。
        ///</summary>
        public string TaskId{ get; set; }
        ///<summary>
        /// 任务操作类型。支持范围：&#x60;ImportImage、ExportImage&#x60;。
        ///</summary>
        public string Action{ get; set; }
        ///<summary>
        /// 任务状态。支持范围：&#x60;pending、running、failed、finished&#x60;。
        ///</summary>
        public string TaskStatus{ get; set; }
        ///<summary>
        /// 任务进度，0% - 100%。
        ///</summary>
        public int? Progress{ get; set; }
        ///<summary>
        /// 任务失败的原因。
        ///</summary>
        public string ErrorInfo{ get; set; }
        ///<summary>
        /// 额外描述信息。
        ///</summary>
        public string Message{ get; set; }
        ///<summary>
        /// 任务创建时间。
        ///</summary>
        public DateTime? CreatedTime{ get; set; }
        ///<summary>
        /// 任务完成时间。
        ///</summary>
        public DateTime? FinishedTime{ get; set; }
        ///<summary>
        /// 镜像ID。
        ///</summary>
        public string ImageId{ get; set; }
        ///<summary>
        /// 导出镜像时有效，表示目标OSS存储地址。
        ///</summary>
        public string OssUrl{ get; set; }
        ///<summary>
        /// 导出镜像时有效，表示生成的ossObject名称。
        ///</summary>
        public string OssObject{ get; set; }
        ///<summary>
        /// 导入镜像时有效，表示用户指定的镜像名称。
        ///</summary>
        public string ImageName{ get; set; }
        ///<summary>
        /// 导入镜像时有效，源OSS外链地址。
        ///</summary>
        public string ImageUrl{ get; set; }
    }
}
